<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>orders</title>

<style type="text/css">
.bodiv{
margin-left:100px;
width:500px;
}
	td{
	border:black,2px;
	}
	.user{
	float:right 
	}
	
	table,table tr th, table tr td { border:1px solid #0094ff; }
       .out { width: 800px; min-height: 25px; line-height: 25px; text-align: center; border-collapse: collapse;} 
        form{ float:right}  
        .in{
        
        }
	
</style>

</head>
<body>
<div class="bodiv">
		<h1>cargo</h1>
				<div class="user">user:${user.uname}</div>
				<h6>${info }</h6>
<table class="out">
<tr>
	<td>
		<a href="cargo?w_id=320dbf9f-8927-462d-90d8-851a1dea29c1"> <c:if test="${ isTJ==true}"><h1>天津</h1></c:if><c:if test="${ isTJ==false}">天津</c:if></a>
	<c:if test="${ isTJ==true}">
	<table class="in">
	
			<c:forEach items="${cargos}" var="cargo" >
		<tr>
		<td>${cargo.cname }</td>
		<td>${cargo.cnumber }</td>
		<td>${cargo.price }</td>
		<td><fmt:formatDate value="${cargo.addTime }" pattern="yyyy-MM-dd HH:mm:ss" /></td>
		<td><a href="update?id=${cargo.id }">update</a></td>
		<td><a href="delete?id=${cargo.id }&w_id=320dbf9f-8927-462d-90d8-851a1dea29c1">delete</a></td>
		</tr>
		</c:forEach>
	</table>
	
	</c:if>
	
	</td>
	<td>
	<a href="cargo?w_id=01226af1-67d3-4702-ad4c-137ded1271f4" > <c:if test="${ isHK==true}"><h1>香港</h1></c:if><c:if test="${ isHK==false}">香港</c:if></a>
	<c:if test="${ isHK==true}">
	<table class="in">
	
			<c:forEach items="${cargos}" var="cargo" >
		<tr>
		<td>${cargo.cname }</td>
		<td>${cargo.cnumber }</td>
		<td>${cargo.price }</td>
		<td><fmt:formatDate value="${cargo.addTime }" pattern="yyyy-MM-dd HH:mm:ss" /></td>
		<td><a href="update?id=${cargo.id }">update</a></td>
		<td><a href="delete?id=${cargo.id }&w_id=01226af1-67d3-4702-ad4c-137ded1271f4">delete</a></td>
		</tr>
		</c:forEach>
	</table>
	
	</c:if>

	<td>
	<td>
		<a href="cargo?w_id=14fd0b2a-b4f8-4d8b-8a6f-426f9d4e8d6d"> <c:if test="${ isSH==true}"><h1>上海</h1></c:if><c:if test="${ isSH==false}">上海</c:if></a>
		<c:if test="${ isSH==true}">
	<table class="in">
	
			<c:forEach items="${cargos}" var="cargo" >
		<tr>
		<td>${cargo.cname }</td>
		<td>${cargo.cnumber }</td>
		<td>${cargo.price }</td>
		<td><fmt:formatDate value="${cargo.addTime }" pattern="yyyy-MM-dd HH:mm:ss" /></td>
		<td><a href="update?id=${cargo.id }">update</a></td>
		<td><a href="delete?id=${cargo.id }&w_id=14fd0b2a-b4f8-4d8b-8a6f-426f9d4e8d6d"">delete</a></td>
		</tr>
		</c:forEach>
	</table>
	
	</c:if>
	</td>

	</tr>
</table>
<a href = "add">back</a>
</div>
</body>
</html>